interface SumFuncType {
  (num1: number, num2: number): number
}

let sum: SumFuncType = function(number1: number, number2: number): number {
  return number1 + number2;
}

console.log(sum(10, 20));